<template>
  <el-radio-group v-model="radio">
    <el-radio :label="3">备选项</el-radio>
    <el-radio :label="6">备选项</el-radio>
    <el-radio :label="9">备选项</el-radio>
  </el-radio-group>
</template>

<script>
import {getData} from "@/components/radio/getDataApi";
export default {
  name: "RadioTest",
  data() {
    return {
      radio: "",
      users: []
    }
  },
  methods: {
    async loadUsers() {
      let res = await getData();
      this.users = res.data;
      console.log("loadUsers =", res);
    },
    test() {
      console.log("test =", [...this.users]);
    }
  },
  async created() {
    await this.loadUsers();
    this.test();
  }
}
</script>

<style scoped>

</style>